from django.db import models

# Create your models here.
class Number(models.Model):
    mobile = models.CharField(max_length=11, unique=True,verbose_name='手机号')
    price = models.IntegerField(default=0,verbose_name='价格')
    level_choice = (
        (1,'1级'),
        (2,'2级'),
        (3,'3级'),
        (4,'4级'),
        )
    level = models.SmallIntegerField(default=1,verbose_name='等级',choices=level_choice)
    status_choice = ((0,'未使用'),(1,'已使用'))
    status = models.SmallIntegerField(default=0,verbose_name='状态',choices=status_choice)

    class Meta:
        db_table = 't_number'